<jsp:include page="../../header.jsp">
			<jsp:param value="item5" name="item"/>
</jsp:include> 
<%@page import="com.cbts.entity.BusinessTravelList"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.io.File"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%try {
			String tempfilePath = session.getAttribute("tempfilePath")
					.toString();
			System.err.println("*******"+tempfilePath);
			if (tempfilePath != null) {
				File tempfile = new File(tempfilePath);
				if (tempfile.exists()) {
					tempfile.delete();
					if (tempfile.exists()) {
						System.out.println("------删除临时文件失败-------");
					} else {
						System.out.println("------删除打包产生的临时文件------");
					}
				}
			}
		} catch (Exception e) {
		} %>
<section class="content">
	<section class="widget"  id="department" >
		<header>
			<span class="icon">&#128196;</span>
			<hgroup>
				<h1>报销申请表</h1>
				<h2>待报销列表</h2>
			</hgroup>
		</header>
		<div classtent">
		
			<form action="applayReimAction!getTravelInfoList.action" name="getTravelInfoList">
			<s:if test="businessTravelLists!=null&&businessTravelLists.size()!=0">
			<table cellspacing="0"  id="myTable">
				<tr>
					<th>出差单号</th>
					<th>职工号</th>
					<th>职工姓名</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>总预算/元</th>
					<th>状态</th>
					<th>审批人</th>
				</tr>
				<s:iterator value="businessTravelLists" id="row" status="state">
					<tr>
						<td><a href="<s:url action='applayReimAction!getTravelInfoList.action?travelorder=%{#row.travelOrder}' />">
							<s:property value="#row.travelOrder"/></a>
						</td>
						<!-- <td><input type="text" name="#row.userInfoByUserid.userid"
							readonly="readonly"
							value=<s:property value="#row.userInfoByUserid.userid"/> />
						</td> -->
						 <td>
							<s:property value="#row.userInfoByUserid.userid"/>
						</td>
						<td>
							<s:property value="#row.userInfoByUserid.userName"/>
						</td>
						
						<td>
						
							<s:date name="#row.startTime" format="yyyy-MM-dd" />
						</td>
						<td>
							<s:date name="#row.endTime" format="yyyy-MM-dd" />							
						</td>
						<td>
							<s:property value="#row.amount"/>
						</td>
						<td>
							<s:property value="#row.verifierStatus"/>
						</td>
						<td>
							<s:property value="#row.userInfoByVerifierId.userName"/>
						</td>
						<!-- 根据父表获取子表的值 -->
						<!-- <s:iterator value="#row.applayReims" id="reimsrow" status="reimsstate">
							 <td>
								<s:property value="#reimsrow.saveCost"/>
							</td>
						</s:iterator> -->
						
					</tr>
				</s:iterator>
			</table>
			</s:if>
			<s:else>
				您不存在待报销的出差申请.
			</s:else>
			</form>
		</div>
		</section>
<%@ include file="../../footer.jsp" %>
